﻿@model Web.ViewModels.LoginForm  
@{
    ViewBag.Title = "Вход";
}
@using (Html.BeginForm<LoginController>(x => x.LogIn(null, Request.Url.AbsoluteUri), FormMethod.Post, new { @class = "ajaxForm", id = "loginBoxForm" }))
  {
			<fieldset>
				@Html.LabelFor(x => x.Email, "E-mail")
				@Html.TextBoxFor(x => x.Email, new { placeholder = "Ваш e-mail", @class = "requiredField" })
				@Html.ValidationMessageFor(x => x.Email)

				<br />
				@Html.LabelFor(x => x.Password, "Пароль")
				@Html.PasswordFor(x => x.Password, new { placeholder = "Ваш пароль", @class = "requiredField" })
				@Html.ValidationMessageFor(x => x.Password)
			</fieldset>
			<div id="errorMessage" class="errorMessage"></div>
			@Html.SubmitButton(null, "Вход", new { @class = "submitButton" })
  }	

